import { defineProps, defineEmits } from 'vue';

// 定义 props
const props = defineProps({
  modelValue: {
    type: Boolean,
    default: false,
  },
});

// 定义 emits
const emits = defineEmits(['update:modelValue']);

// 定义 cancel 函数
const cancel = () => {
  emits('update:modelValue', false);
};

export { props, emits, cancel };
